package com.ycw.service.wang.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ycw.bean.Comments;
import com.ycw.dao.CommentsMapper;
import com.ycw.service.wang.CommentsService;


@Service
public class CommentsServiceImpl implements CommentsService {

	@Autowired
	private CommentsMapper commentsMapper;

	@Override
	public List<Comments> getComments() {
		List<Comments> com = commentsMapper.getAll();
		return com;
	}

	@Override
	public List<Comments> descComments() {
		List<Comments> com = commentsMapper.getAllComments();
		System.out.println(com.get(0));
		return com;
	}

}
